package com.zhongfl.crm.model.boss;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * kafka消息
 * @author 木叶丸
 * @date 2018/4/15
 */
@ToString
public class MessageLog implements Serializable {

    /**
     * 主键id
     */
    @Setter
    @Getter
    private Integer id;

    /**
     * 消息id
     */
    @Setter
    @Getter
    private String msgId;

    /**
     * 消息类型
     */
    @Setter
    @Getter
    private Integer msgType;

    /**
     * 消息体
     */
    @Setter
    @Getter
    private String msgBody;

    /**
     * 消息处理状态
     * 默认0-未处理；1-成功；2-失败
     */
    @Setter
    @Getter
    private Integer handleStatus;

    /**
     * 备注
     */
    @Setter
    @Getter
    private String remark;

    /**
     * 创建时间
     */
    @Setter
    @Getter
    private Date ctime;


    public MessageLog() {
    }

    public MessageLog(String msgId, Integer msgType,String msgBody,String remark) {
        this.msgId = msgId;
        this.msgType = msgType;
        this.msgBody = msgBody;
        this.remark = remark;
    }
}
